package com.sp.transformation;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * 演示PrintWriter使用方式
 */
public class PrintWriter_ {
    public static void main(String[] args) throws IOException {
        PrintWriter printWriter = new PrintWriter(new FileWriter("d:\\development\\code\\IO_Test\\news\\story2.txt"));
        printWriter.print("hi, 大帅你好");
        printWriter.close();
    }
}
